﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using EZCRS.HCMS.Web;

namespace EZCRS.HCMS.Web.manage.booklog
{
    public partial class cakyall : ManageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CheckModule(48);

            
            if (!Page.IsPostBack)
            {
                AjaxPro.Utility.RegisterTypeForAjax(typeof(EZCRS.HCMS.myajax.CardUserLog));

                rbl.DataSource = DataAcl.Common.CakyDateClass();
                rbl.DataTextField = "value";
                rbl.DataValueField = "key";
                rbl.DataBind();
                rbl.SelectedValue = "0";

                rblsort.DataSource = DataAcl.Common.CakySort();
                rblsort.DataTextField = "value";
                rblsort.DataValueField = "key";
                rblsort.DataBind();
                rblsort.SelectedValue = "0";

                cdate.Attributes.Add("onclick", "event.cancelBubble=true;showCalendarTA('cdate',false,'cdate','cdate',null);");
                cdate.Attributes.Add("onblur", "if(!chkdate(this.value))this.value='yyyy-MM-dd';");
            }
        }
    }
}
